imwayland: fix potential leak of attr list
authorChristian Hergert <chergert@redhat.com>
Sat, 28 Jul 2018 17:37:21 +0000 (10:37 -0700)
committerChristian Hergert <chergert@redhat.com>
Sat, 28 Jul 2018 17:54:14 +0000 (10:54 -0700)
commit002e48c469be2a4506153f692124631d3f3cf13a
tree63f3db2f02c2812b7f708fe6a9436618a4085520
parentf33549da9126e99cca234c437f045b19575fc37a
imwayland: fix potential leak of attr list

This fixes a potential leak of a PangoAttrList that is set when chaining
up to the parent get_preedit_string(). We check to see if the attr list
was created and reuse it instead of leaking the previous value.
gtk/gtkimcontextwayland.c